// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /knowledgeGraph/add */
export async function addKnowledgeGraph(
  body: API.KnowledgeGraphAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/knowledgeGraph/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /knowledgeGraph/delete */
export async function deleteKnowledgeGraph(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/knowledgeGraph/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /knowledgeGraph/list/page */
export async function listKnowledgeGraphByPage(
  body: API.KnowledgeGraphQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageKnowledgeGraphVO>('/knowledgeGraph/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
